package com.xuetang9.Query;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @类: AccountLoginQuery
 * @描述: 用来接收用户的使用账号密码的登录请求
 * @date: 2020/5/16
 * @author: Admin
 * @ver 1.0.0
 * @since JDK 1.8
 */
@Data
public class AccountLoginQuery {

    /**
     * 账号
     */
    @NotBlank(message = "账号必填")
    private String account;


    /**
     * 密码
     */
    @NotBlank(message = "密码必填")
    private String password;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
